package com.zds.demo.util;

import android.content.Context;
import android.util.Log;

import com.zds.demo.MyApplication;

public class ResUtil {
    public static String getString(int resourceId) {
        try {
            Context context = MyApplication.getInstance().getApplicationContext();
            return context.getString(resourceId);
        } catch (Exception e) {
            Log.e("MyApplication", "getString= " + e);
        }
        return "";
    }

    public static String getString(int resourceId, Object... formatArgs) {
        try {
            Context context = MyApplication.getInstance().getApplicationContext();
            return context.getString(resourceId, formatArgs);
        } catch (Exception e) {
            Log.e("MyApplication", "getString= " + e);
        }
        return "";
    }


}
